home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
comm
/
news
/
npns.lha
/
NPNS
/
NewPostNewsSpool.doc
next >
Wrap
Text File
|
1995-09-30
|
4KB
|
139 lines
New Post News Spool v3.3
by
Nick d'Alterio
September 1995
Introduction
-------------
A while back I was looking for a way of spooling news so that I could
write articles offline and then send them when I went online. I found
the a set of programs to do this in PostNewsSpool by James Burton.
However I found that there were a number of problems with postnews
and sendnews such as:-
The check to see if online took far too long
Locks were often left on the spool dir
Lots of unnecessary files were produced
If news posting fails for some reason the message was lost
These versions have eliminated these problems and added a couple
of extra features.
Installation
------------
Copy sendnews and postnews to AmiTCP:bin/ and set the appropriate
environment variable described below.
postnews should be the program that is called by your news reading
program to post the news. This will spool the article so that you
can use sendnews to send it off when you go online.
Although it is possible to use to spool news without the rest of the
package I recommend that you get the complete postnewsspool archive
by James Burton.
NOTE This is an AmiTCP only program since I don't know how to check
for 'online-ness' for AS225r2.
Updating
--------
Note that from version 3 sendnews will attempt to send any article
in the spooldir no matter what the name is. So if your news reader
produces a fully formed news article with header you can drop it
straight into the spooldir without using postnews.
You should remove the seq file if you had it in your spooldir and
the env variable PNS_SEQFILE
Sendnews
--------
Simply run the program and it will send off all messages in the
spool directory indicated by the environment variable PNS_SPOOLDIR
(AmiTCP:Usr/Spool/News by default).
The news articles will be posted using the program specified in
PNS_NNTPPOST (AmiTCP:bin/NNTPPost by default ). If the posting program
fails to post the article the article will then be appended to the
end of the failed archive indicated by PNS_FAILED_ARC
( AmiTCP:Usr/Spool/sendnews.failed by default ). Each file in the
failed archive will be separated by a line containing the date and time
sendnews failed to post the article.
Remember that NNTPPost requires that the environment variable NNTPSERVER
is set.
Postnews
--------
This spools articles which have already had the header prepared by
another program such as tin. It places the article in the spool
directory PNS_SPOOLDIR (AmiTCP:Usr/Spool/News by default). The
spooled filename has the format msg.######### where ###### is a
number which refers to the time of writing.
If online at the time of writing the article then postnews immediately
executes sendnews (which must be in AmiTCP:bin/) to send off the article.
To stop postnews from sending the article create an enviroment variable
called PNS_OFFLINE.
Command line options:-
-from "someone@somewhere" Add a from line to the header of
article.
-n Don't call sendnews if online
-h Prints some help
Usage:-
postnews article
postnews < article
e.g. For tin I use
set TIN_POST amitcp:bin/postnews -from "daltern@ic.ac.uk (Nicholas d'Alterio)" %s
History
-------
3.2 - New enviroment variable PNS_OFFLINE
3.1 - Now uses ADOS functions
- seq file no longer needed
- ANY file in the spooldir will be sent
- the failed archive entries are separated by a line
containing the time the file failed.
- new env variable PNS_NNTPPOST allows user to specify
program to post news
2.1 - Added support for environment variables
1.x - Internal test versions
Conditions of Use
-----------------
Use it how you like just remember I accept NO liability for
ANYTHING that happens.
Let me know of what you think of it, bugs, etc
Thanks
------
Thanks to James Burton for the original idea and code.
------------------------------------------------------------------------------------
Nick d'Alterio (n.dalterio@ic.ac.uk)
$Id: NewPostNewsSpool.doc 1.5 1995/09/30 21:29:44 daltern Exp $